
{literal}
    <style type="text/css">
      .activeline {background: #e8f2ff !important;}
      .CodeMirror-scroll {height: auto;min-height:200px;overflow-y: hidden;overflow-x: auto;}
      .tableStatic td {vertical-align: top!important;}
    </style>
{/literal}


<script type="text/javascript">
 function doLoad(){ldelim} 
  
  	var Id = $("#category").val();
	var url = 'index.php?do=modules&action=modedit&mod=shop&moduleaction=edit_template&sub=general&Id='+Id+'&cp={$sess}';
	execute('', '', '', url, '', '', '', $('#tab4').find('.tab_container'));
	return false;

 {rdelim};


$('.CodeMirror').each(function(i, el){ldelim}
    CodeMirror(el).refresh();
{rdelim});



$(document).ready(function() {ldelim}	
	$("form[name='template']").submit(function() {ldelim}
		var url = $(this).attr('action');
		var data = $(this).serialize();	
			execute('', '', 'Шаблоны сохранены', url, '', data, function(){ldelim}updateHash('tab4-3tab'); setupHash('widget2');{rdelim});
		return false;
	{rdelim});

{rdelim});


</script>


<br/>
<h4 class="pagetitle">&nbsp;</h4>
<br/>

<form name="template" method="post" action="index.php?do=modules&action=modedit&mod=shop&moduleaction=edit_template&sub=save&cp={$sess}" class="mainForm">

{if $smarty.request.sub =='general'}









Шаблон вывода товаров привязан к категории!<br/>
В зависимости от вызванной пользователем категории будет показываться тот или иной шаблон вывода.<br/>
Если у категории шаблон не задан - будет выводится родительский шаблон.<br/>
Если у вас нет необходимости выводить разные шаблоны у категорий, тогда задайте шаблон только у корневой дирректории<br/><br/>

{$smaty.request.Id}	

<div class="rowElem">
	<label>Категория:</label>
	<div class="formRight">
		<select style="width:250px" name="category" id="category" onchange="doLoad();">
		<option value="">Выберите категорию</option>
		{foreach from=$ProductCategs item=pc}
		<option value="{$pc->Id}" {if $pc->Id==$row->Id} selected="selected"{/if}>{$pc->expander}{$pc->category_name|escape:html|stripslashes}</option>
		{/foreach}
		</select>
	</div>
<div class="fix"></div>
</div>



		<div class="head" style="border-top: 1px solid #D5D5D5;"><h5 class="iFrames">Основной шаблон</h5></div>

	
		<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
		<col width="250">
		<col>
		    <thead>
		    <tr>
		        <td>Поля</td>
		        <td>Основной шаблон</td>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		        <td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:category_id]', '');">[tag:tph:category_id]</a></strong></td>
		        <td rowspan="12" valign="top" class="template_products_head">
		        	{literal}
		        	    <style type="text/css">
		        	      .template_products_head .CodeMirror-scroll {min-height:350px;}
		        	    </style>
		        	{/literal}	
		        	<textarea placeholder="" name="template_products_head" cols="80" rows="10" id="template_products_head" style="width:100%">{$row->template_products_head|escape}</textarea>В данное поле возможно добавлять теги модулей, например [mod_moredoc]</td>
		    </tr>


			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:category_name][xx]', '');">[tag:tph:category_name][xx | more]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:category_image][xx*xx]', '');">[tag:tph:category_image][width*height]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:category_descr_top][xx]', '');">[tag:tph:category_descr_top][xx | more]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:category_descr_bottom][xx]', '');">[tag:tph:category_descr_bottom][xx | more]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:form_sort]', '');">[tag:tph:form_sort]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:top_product]', '');">[tag:tph:top_product]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:new_product]', '');">[tag:tph:new_product]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:sel_product]', '');">[tag:tph:sel_product]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:category_menu]', '');">[tag:tph:category_menu]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:navi_pages]', '');">[tag:tph:navi_pages]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductshead('[tag:tph:items_content][limit]', '');">[tag:tph:items_content][limit]</a></strong></td></tr>

		    
		     <tr>
		         <td>html теги</td>
		         <td>
		        |&nbsp;
		        <a href="javascript:void(0);" onclick="pasteproductshead('<ol>', '</ol>');"><strong>OL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pasteproductshead('<ul>', '</ul>');"><strong>UL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pasteproductshead('<li>', '</li>');"><strong>LI</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<p class=&quot;&quot;>', '</p>');"><strong>P</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<strong>', '</strong>');"><strong>B</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<em>', '</em>');"><strong>I</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<h1>', '</h1>');"><strong>H1</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<h2>', '</h2>');"><strong>H2</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<h3>', '</h3>');"><strong>H3</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<h4>', '</h4>');"><strong>H4</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<h5>', '</h5>');"><strong>H5</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<div class=&quot;&quot; id=&quot;&quot;>', '</div>');"><strong>DIV</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<a href=&quot;&quot; title=&quot;&quot;>', '</a>');"><strong>A</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<img src=&quot;&quot; alt=&quot;&quot; />', '');"><strong>IMG</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<span>', '</span>');"><strong>SPAN</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<pre>', '</pre>');"><strong>PRE</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('<br />', '');"><strong>BR</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductshead('\t', '');"><strong>TAB</strong></a>&nbsp;|
		                 </td>
		            </tr>
		    </tbody>
		</table>
<div class="rowElem">
	<input type="submit" class="basicBtn topDir" value="{#ButtonSave#}" />
</div>


<br/>


		<div class="head" style="border-top: 1px solid #D5D5D5;"><h5 class="iFrames">Шаблон товара</h5></div>

		
		<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
		<col width="250">
		<col>
		    <thead>
		    <tr>
		        <td>Поля</td>
		        <td>Шаблон товара</td>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		       <td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:id]', '');">[tag:tpi:id]</a></strong></td>
		        <td rowspan="17" valign="top" class="template_products_item">
					{literal}
					    <style type="text/css">
					      .template_products_item .CodeMirror-scroll {min-height:550px;}
					    </style>
					{/literal}		        
		        	<textarea placeholder="" name="template_products_item" cols="80" rows="10" id="template_products_item" style="width:100%">{$row->template_products_item|escape}</textarea>В данное поле возможно добавлять теги модулей, например [mod_moredoc]</td>
		    </tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:article]', '');">[tag:tpi:article]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:link]', '');">[tag:tpi:link]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:name][xx]', '');">[tag:tpi:name][xx | more]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:description][xx]', '');">[tag:tpi:description][xx | more]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:image][xx*xx]', '');">[tag:tpi:image][width*height]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:price]', '');">[tag:tpi:price]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:price_old]', '');">[tag:tpi:price_old]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:active]', '');">[tag:tpi:active]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:available]', '');">[tag:tpi:available]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:variant]', '');">[tag:tpi:variant]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:category_id]', '');">[tag:tpi:category_id]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:category_name][xx]', '');">[tag:tpi:category_name][xx | more]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:button_basket]', '');">[tag:tpi:button_basket]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:button_wish]', '');">[tag:tpi:button_wish]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:input_amount]', '');">[tag:tpi:input_amount]</a></strong></td></tr>
<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteproductsitem('[tag:tpi:position]', '');">[tag:tpi:position]</a></strong></td></tr>
		    
		     <tr>
		         <td>html теги</td>
		         <td>
		        |&nbsp;
		        <a href="javascript:void(0);" onclick="pasteproductsitem('<ol>', '</ol>');"><strong>OL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pasteproductsitem('<ul>', '</ul>');"><strong>UL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pasteproductsitem('<li>', '</li>');"><strong>LI</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<p class=&quot;&quot;>', '</p>');"><strong>P</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<strong>', '</strong>');"><strong>B</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<em>', '</em>');"><strong>I</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<h1>', '</h1>');"><strong>H1</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<h2>', '</h2>');"><strong>H2</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<h3>', '</h3>');"><strong>H3</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<h4>', '</h4>');"><strong>H4</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<h5>', '</h5>');"><strong>H5</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<div class=&quot;&quot; id=&quot;&quot;>', '</div>');"><strong>DIV</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<a href=&quot;&quot; title=&quot;&quot;>', '</a>');"><strong>A</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<img src=&quot;&quot; alt=&quot;&quot; />', '');"><strong>IMG</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<span>', '</span>');"><strong>SPAN</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<pre>', '</pre>');"><strong>PRE</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('<br />', '');"><strong>BR</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteproductsitem('\t', '');"><strong>TAB</strong></a>&nbsp;|
		                 </td>
		            </tr>
		    </tbody>
		</table>
<div class="rowElem">
	<input type="submit" class="basicBtn topDir" value="{#ButtonSave#}" />
</div>

<br />








		{literal}
		    <script language="javascript">
		    
		    
		    
		    
		      var templateproductshead = CodeMirror.fromTextArea(document.getElementById("template_products_head"), {
		        lineNumbers: true,lineWrapping: true,matchBrackets: true,mode: "application/x-httpd-php",indentUnit: 4,indentWithTabs: true,enterMode: "keep",tabMode: "shift",
		        onChange: function(){templateproductshead.save();},
				onCursorActivity: function() {
				  templateproductshead.setLineClass(hlLine, null, null);
				  hlLine = templateproductshead.setLineClass(templateproductshead.getCursor().line, null, "activeline");
				}
		      });
			  var hlLine = templateproductshead.setLineClass(0, "activeline");
		
		      function getSelectedRange() {
		        return { from: templateproductshead.getCursor(true), to: templateproductshead.getCursor(false) };
		      }
		
		      function pasteproductshead(startTag,endTag) {
		        var range = getSelectedRange();
		        templateproductshead.replaceRange(startTag + templateproductshead.getRange(range.from, range.to) + endTag, range.from, range.to)
		        templateproductshead.setCursor(range.from.line, range.from.ch + startTag.length);
		      }
		
		
		
	
		      var templateproductsitem = CodeMirror.fromTextArea(document.getElementById("template_products_item"), {
		        lineNumbers: true,lineWrapping: true,matchBrackets: true,mode: "application/x-httpd-php",indentUnit: 4,indentWithTabs: true,enterMode: "keep",tabMode: "shift",
		        onChange: function(){templateproductsitem.save();},
				onCursorActivity: function() {
				  templateproductsitem.setLineClass(hlLine, null, null);
				  hlLine = templateproductsitem.setLineClass(templateproductsitem.getCursor().line, null, "activeline");
				}
		      });
			  var hlLine = templateproductsitem.setLineClass(0, "activeline");
		
		      function getSelectedRange() {
		        return { from: templateproductsitem.getCursor(true), to: templateproductsitem.getCursor(false) };
		      }
		
		      function pasteproductsitem(startTag,endTag) {
		        var range = getSelectedRange();
		        templateproductsitem.replaceRange(startTag + templateproductsitem.getRange(range.from, range.to) + endTag, range.from, range.to)
		        templateproductsitem.setCursor(range.from.line, range.from.ch + startTag.length);
		      }

            
		    </script>
		{/literal}






































{/if}
{if $smarty.request.sub =='detail'}

Детальный шаблон для всех единый - наверное?????<br/><br/>

единый блок<br/><br/>


template_product_detail




{/if}
{*
template_categ_head
template_categ_item

template_products_head
template_products_item

template_product_detail
*}


{if $smarty.request.sub =='categ'}


		<div class="head" style="border-top: 1px solid #D5D5D5;"><h5 class="iFrames">Основной шаблон</h5></div>

		
		<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
		<col width="250">
		<col>
		    <thead>
		    <tr>
		        <td>Поля</td>
		        <td>Основной шаблон</td>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		        <td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pastecateg('[tag:tch:content_level][level]', '');">[tag:tch:content_level][level | all]</a></strong></td>
		        <td rowspan="1" valign="top">
		        	<textarea placeholder="" name="template_categ_head" cols="80" rows="10" id="templateCateg" style="width:100%">{$row->template_head_categ|escape}</textarea>В данное поле возможно добавлять теги модулей, например [mod_moredoc]</td>
		    </tr>

		    
		     <tr>
		         <td>html теги</td>
		         <td>
		        |&nbsp;
		        <a href="javascript:void(0);" onclick="pastecateg('<ol>', '</ol>');"><strong>OL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pastecateg('<ul>', '</ul>');"><strong>UL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pastecateg('<li>', '</li>');"><strong>LI</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<p class=&quot;&quot;>', '</p>');"><strong>P</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<strong>', '</strong>');"><strong>B</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<em>', '</em>');"><strong>I</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<h1>', '</h1>');"><strong>H1</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<h2>', '</h2>');"><strong>H2</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<h3>', '</h3>');"><strong>H3</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<h4>', '</h4>');"><strong>H4</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<h5>', '</h5>');"><strong>H5</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<div class=&quot;&quot; id=&quot;&quot;>', '</div>');"><strong>DIV</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<a href=&quot;&quot; title=&quot;&quot;>', '</a>');"><strong>A</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<img src=&quot;&quot; alt=&quot;&quot; />', '');"><strong>IMG</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<span>', '</span>');"><strong>SPAN</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<pre>', '</pre>');"><strong>PRE</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('<br />', '');"><strong>BR</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pastecateg('\t', '');"><strong>TAB</strong></a>&nbsp;|
		                 </td>
		            </tr>
		    </tbody>
		</table>



<br/><br/>



		<div class="head" style="border-top: 1px solid #D5D5D5;"><h5 class="iFrames">Шаблон пунктов</h5></div>

		
		<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
		<col width="250">
		<col>
		    <thead>
		    <tr>
		        <td>Поля</td>
		        <td>Шаблон пунктов</td>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		        <td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:head:id]', '');">[tag:head:id]</a></strong></td>
		        <td rowspan="12" valign="top">
		        	<textarea placeholder="" name="template_categ_item" cols="80" rows="10" id="templateItemCateg" style="width:100%">{$row->templateItemCateg|escape}</textarea>В данное поле возможно добавлять теги модулей, например [mod_moredoc]</td>	   
		    </tr>

			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:id]', '');">[tag:tci:id]</a></strong></td></tr>  
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:name][xx]', '');">[tag:tci:name][xx | more]</a></strong></td></tr>  
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:parent_id]', '');">[tag:tci:parent_id]</a></strong></td></tr> 
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:parent_name][xx]', '');">[tag:tci:parent_name][xx | more]</a></strong></td></tr>   
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:navop_id]', '');">[tag:tci:navop_id]</a></strong></td></tr>
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:navop_name][xx]', '');">[tag:tci:navop_name][xx | more]</a></strong></td></tr>    
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:descr_top][xx]', '');">[tag:tci:descr_top][xx | more]</a></strong></td></tr>    
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:descr_bottom][xx]', '');">[tag:tci:descr_bottom][xx | more]</a></strong></td></tr>     
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:image][xx*xx]', '');">[tag:tci:image][width*height]</a></strong></td></tr>   
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:position]', '');">[tag:tci:position]</a></strong></td></tr>   
			<tr><td><strong><a class="rightDir" title="" href="javascript:void(0);" onclick="pasteitemcateg('[tag:tci:prod_incateg]', '');">[tag:tci:prod_incateg]</a></strong></td></tr>        

		    
		     <tr>
		         <td>html теги</td>
		         <td>
		        |&nbsp;
		        <a href="javascript:void(0);" onclick="pasteitemcateg('<ol>', '</ol>');"><strong>OL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pasteitemcateg('<ul>', '</ul>');"><strong>UL</strong></a>&nbsp;|&nbsp;
		        <a href="javascript:void(0);" onclick="pasteitemcateg('<li>', '</li>');"><strong>LI</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<p class=&quot;&quot;>', '</p>');"><strong>P</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<strong>', '</strong>');"><strong>B</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<em>', '</em>');"><strong>I</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<h1>', '</h1>');"><strong>H1</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<h2>', '</h2>');"><strong>H2</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<h3>', '</h3>');"><strong>H3</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<h4>', '</h4>');"><strong>H4</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<h5>', '</h5>');"><strong>H5</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<div class=&quot;&quot; id=&quot;&quot;>', '</div>');"><strong>DIV</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<a href=&quot;&quot; title=&quot;&quot;>', '</a>');"><strong>A</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<img src=&quot;&quot; alt=&quot;&quot; />', '');"><strong>IMG</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<span>', '</span>');"><strong>SPAN</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<pre>', '</pre>');"><strong>PRE</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('<br />', '');"><strong>BR</strong></a>&nbsp;|&nbsp;
				<a href="javascript:void(0);" onclick="pasteitemcateg('\t', '');"><strong>TAB</strong></a>&nbsp;|
		                 </td>
		            </tr>
		    </tbody>
		</table>











		{literal}
		    <script language="javascript">
		    
		    
		    
		    
		      var templateCateg = CodeMirror.fromTextArea(document.getElementById("templateCateg"), {
		        lineNumbers: true,lineWrapping: true,matchBrackets: true,mode: "application/x-httpd-php",indentUnit: 4,indentWithTabs: true,enterMode: "keep",tabMode: "shift",
		        onChange: function(){templateCateg.save();},
				onCursorActivity: function() {
				  templateCateg.setLineClass(hlLine, null, null);
				  hlLine = templateCateg.setLineClass(templateCateg.getCursor().line, null, "activeline");
				}
		      });
			  var hlLine = templateCateg.setLineClass(0, "activeline");
		
		      function getSelectedRange() {
		        return { from: templateCateg.getCursor(true), to: templateCateg.getCursor(false) };
		      }
		
		      function pastecateg(startTag,endTag) {
		        var range = getSelectedRange();
		        templateCateg.replaceRange(startTag + templateCateg.getRange(range.from, range.to) + endTag, range.from, range.to)
		        templateCateg.setCursor(range.from.line, range.from.ch + startTag.length);
		      }
		
		
		
		      var templateItemCateg = CodeMirror.fromTextArea(document.getElementById("templateItemCateg"), {
		        lineNumbers: true,lineWrapping: true,matchBrackets: true,mode: "application/x-httpd-php",indentUnit: 4,indentWithTabs: true,enterMode: "keep",tabMode: "shift",
		        onChange: function(){templateItemCateg.save();},
				onCursorActivity: function() {
				  templateItemCateg.setLineClass(hlLine, null, null);
				  hlLine = templateItemCateg.setLineClass(templateItemCateg.getCursor().line, null, "activeline");
				}
		      });
			  var hlLine = templateItemCateg.setLineClass(0, "activeline");
		
		      function getSelectedRange() {
		        return { from: templateItemCateg.getCursor(true), to: templateItemCateg.getCursor(false) };
		      }
		
		      function pasteitemcateg(startTag,endTag) {
		        var range = getSelectedRange();
		        templateItemCateg.replaceRange(startTag + templateItemCateg.getRange(range.from, range.to) + endTag, range.from, range.to)
		        templateItemCateg.setCursor(range.from.line, range.from.ch + startTag.length);
		      }

            
		    </script>
		{/literal}









{/if}





</forn>




<br />
<br />